<template>
  <div class="eventAndNewsList">
    <!--活动及品牌新闻列表-->
    <div class="event-brand">

      <div class="event-list">
        <div class="news2_1" v-for="index in 7" :key="index" style="margin-left:0px;">
          <router-link to="/eventAndNews/eventAndNewsDetail">
            <div class="newsimg">
              <a href="#">
                <img src="../assets/uploadfiles/image/temp/xin_img.jpg" width="280" height="316"/>
              </a>
            </div>
          </router-link>
          <router-link to="/eventAndNews/eventAndNewsDetail">
            <div class="newstitle"><a href="#">为什么对办公系统应用价值的认知很重要？</a></div>
          </router-link>
          <div class="newstime">2014-01-22</div>
          <div class="newsdes">马蹄捷报映晓日，感恩迎新春。新年伊始，迎来开门红感恩迎新春。新年伊始，迎来开门红...</div>
          <router-link to="/eventAndNews/eventAndNewsDetail">
            <div class="newsmore">
              <a href="news_info.html">
                <img src="../assets/images/more.jpg" width="13" height="11"/>
                查看详细
              </a>
            </div>
          </router-link>
        </div>
      </div>
    </div>
    <!--分页-->
    <div class="pagination">
      <el-pagination
        background
        layout="prev, pager, next"
        :total="1000">
      </el-pagination>
    </div>
  </div>
</template>

<script>
export default {
  name: 'EventAndNewsList'
}
</script>

<style scoped lang="less">
.eventAndNewsList {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  // event-list
  .event-brand {
    width: 980px;
    margin: 0 auto;
    text-align: left;
    .event-list {
      .news2_1 {
        width: 314px;
        height: 515px;
        overflow: hidden;
        box-sizing: border-box;
        border: 2px solid #e7e7e7;
        float: left;
        font-size: 12px;
        margin: 10px 9px;
        padding: 15px;
        display: inline;
        background: #fff;
        color: #444444;

        .newstitle {
          padding-top: 10px;

          a {
            color: #444444;
            text-decoration: none;
            font-weight: bold;
          }
        }

        .newstime {
          font-weight: bold;
          padding-bottom: 10px;
          border-bottom: 1px dotted #b2b2b2;
        }

        .newsdes {
          width: 280px;
          height: 70px;
          overflow: hidden;
          color: #666666;
          line-height: 19px;
          margin-top: 8px;
        }

        .newsmore {
          a {
            text-decoration: none;
            color: #91a3cf;
          }
        }

      }
    }
  }

  // 分页
  .pagination {
    width: 980px;
    height: 50px;
    margin-top: 50px;
  }
}

</style>
